import { ShortCut } from "../Shortcut/ShortCut";
import { IRegisterShortcut } from "../Interface/ShortCut";

interface IRegisterPayload {
  shortcut: ShortCut;
}

export class Register {
  public shortcutList: (payload: IRegisterShortcut[]) => void;

  constructor(payload: IRegisterPayload) {
    const { shortcut } = payload;
    // 用户注册快捷键
    this.shortcutList = shortcut.registerShortcutList.bind(shortcut);
  }
}
